package com.ve.everything.searcher;

import java.util.List;

public class SearchMain {

    public static void main(String[] args) throws Exception {

        String id="fda5c1b8-1ed3-44ea-bb97-ecf9f6eaeecb";

//        DocumentWithHighlights documentWithHighlights = LuceneSearch.searchOther(id, "id", 1).get(0);

//        DocumentWithHighlights documentWithHighlights = LuceneSearch.searchOther("EverythingUtils.java", "file", 1).get(0);
        List<DocumentWithHighlights> documentWithHighlights = LuceneSearch.searchBody("Exception", 1);


        for (DocumentWithHighlights documentWithHighlight : documentWithHighlights) {
            ResultObject resultObject = LuceneProcess.fullContent(documentWithHighlight);
            System.out.println(resultObject);
        }

    }
}
